public class Inserer implements Commande {
	//----------------Arguments--------------------------------------------------------------------------
	
	private Buffer buffer;
	private IHM ihm;
	
	//----------------Constructeur----------------------------------------------------------------------
	
	public Inserer(Buffer b, IHM i)
	{		
		this.buffer = b;
		this.ihm = i;
	}

	//----------------Methodes--------------------------------------------------------------------------
	
	public void execute()
	{
		int debutSelection = ihm.getDebutSelection();
		int finSelection = ihm.getFinSelection();
		String textInserer = ihm.getTextInserer();
		buffer.inserer(textInserer, debutSelection, finSelection);
	}
}
